<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<title>卡拉卡-在线实名制选号平台</title>
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="../js/jquery-1.7.min.js"></script>
		<script language="javascript" type="text/javascript">
			function i_reload()
			{
				var imgNode = document.getElementById("vimg");
				imgNode.src = "/verify/code/generate?rnd="+Math.random(); 
			}
			
			//登录
			function logon()
			{
				var account =$.trim($("#account").val());
				$("#account").val(account);
				if(account.length==0)
				{
					$("#error").html("<p class=\"error\">请输入用户名或工号</p>");
					return;
				}
				
				var password =$.trim($("#password").val());
				$("#password").val(password);
				if(password.length==0)
				{
					$("#error").html("<p class=\"error\">请输入密码</p>");
					return;
				}
				
				var verifycode =$.trim($("#verifycode").val());
				$("#verifycode").val(verifycode);
				if(verifycode.length==0)
				{
					$("#error").html("<p class=\"error\">请输入验证码</p>");
					return;
				}
				
				$("#logonform").action="/logon";
				$("#logonform").target="_self";
				$("#logonform").submit();
			}
		</script>
	</head>

	<body>
		<div class="login">
			<form id="logonform" name="logonform" action="/logon" method="post">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td width="270" rowspan="6">&nbsp;</td>
					<td height="70" colspan="2">&nbsp;</td>
				</tr>
				<tr>
					<td align="center">&nbsp;</td>
					<td id="error" align="center">
						<p style="float:left;color:#CC0000;padding-left:20px;height:20px;line-height:20px;">$!{model.get("error")}</p>
					</td>
				</tr>
				<tr>
					<td width="60" height="45">工 号</td>
					<td>
						<label>
							<input type="text" id="account" name="account" class="login_input" style="width:200px;" maxlength="8"/>
						</label>
					</td>
				</tr>
				<tr>
					<td height="45">密 码</td>
					<td>
						<input type="password" id="password" name="password" class="login_input" style="width:200px;" maxlength="16"/>
					</td>
				</tr>
				<tr>
					<td height="45">验证码</td>
					<td>
						<input type="text" id="verifycode" name="verifycode" class="login_input" style="width:100px;" maxlength="4"/>
						<img id="vimg" src="/verify/code/generate?rnd=" title="点击刷新验证码" style="width:90px;height:30px;cursor:pointer;margin-bottom:2px" onclick="i_reload();"/>
					</td>
				</tr>
				<tr>
					<td height="40">&nbsp;</td>
					<td height="60">
						<label>
							<input type="button" name="Submit" value="登  录" class="login_btn" onclick="logon()" />
						</label>
					</td>
				</tr>
			</table>
			</form>
		</div>
		<div id="foot" style="position: absolute;left:0;top:100%;margin-top:-38px;">增值电信业务经营许可证粤ICP备13067762号 Copyright 2000-2014 klksim.com All rights reserved.&nbsp;技术支持：13006688168</div>
	</body>
</html>
